import { Roller } from '../imports';

export function RollerPage() {
	const data = Array(50)
		.fill(0)
		.map((v, i) => 2000 + i + '');
	return (
		<>
			<h2>滚动选择</h2>
			<Roller
				options={data}
				onPick={(detail) => {
					console.log(detail);
				}}
				style={{ width: '10em' }}
			/>
		</>
	);
}
